const routes = {
  path: '/admin',
  name: 'admin',
  component: () => import('../../views/admin/index.vue'),
  children: [
    {
      path: 'home',
      name: 'home',
      component: () => import('../../views/admin/home/index.vue'),
      meta: {
        title: '管理首页'
      }
    },
    {
      path: 'content',
      name: 'content',
      component: () => import('../../views/admin/manage/content.vue'),
      meta: {
        title: '文章管理'
      }
    },
    {
      path: 'comment',
      name: 'comment',
      component: () => import('../../views/admin/manage/comment.vue')
    },
    {
      path: 'tag',
      name: 'tag',
      component: () => import('../../views/admin/manage/tag.vue')
    },
    {
      path: 'classify',
      name: 'classify',
      component: () => import('../../views/admin/manage/classify.vue')
    },
    {
      path: 'statistic',
      name: 'statistic',
      component: () => import('../../views/admin/statistic/index.vue')
    },
    {
      path: 'nav',
      name: 'nav',
      component: () => import('../../views/admin/nav/index.vue'),
      meta: {
        title: '导航管理'
      }
    },
    {
      path: 'setting',
      name: 'setting',
      component: () => import('../../views/admin/personal/index.vue'),
      meta: {
        title: '个人设置'
      }
    }
  ]
}
export default routes
